package pers.karl.war.controller;

import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Package: demo.karl.springboot.web.controller
 * @Description:
 * @Author: caoql
 * @Date: 2018/12/29 8:43
 * @version: V1.0
 */
@RestController
public class TestController {

    @RequestMapping("/")
    public String testGet(String msg) {
        return StringUtils.isEmpty(msg) ? "hello" : msg;
    }

}
